package com.wangyu.talents.web.security.shiro.jwt;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author wangyu
 * @Date 2018-09-10 13:59
 */
public class JWTToken implements AuthenticationToken {

  // 密钥
  private String token;

  public JWTToken(String token) {
    this.token = token;
  }

  public JWTToken() {
  }

  @Override
  public Object getPrincipal() {
    return token;
  }

  @Override
  public Object getCredentials() {
    return token;
  }
}
